<?php
/**
 * @package scuttle
 * @file /xoops_version.php
 **/

$modversion['name'] = _MI_SC_NAME;
$modversion['version'] = 0.90;
$modversion['description'] = _MI_SC_DESC;
$modversion['credits'] = "hiro1173 Hiroki Seike";
$modversion['author'] = "Beabo, japan <br />http://beabo.net/<br />Mail : hiro1173.seike@gmail.com <br />Twittre : hiro1173";
$modversion['help'] = "help.html";
$modversion['license'] = "GPL see LICENSE";

$modversion['image'] = "images/scuttle_slogo.png";
$modversion['dirname'] = "scuttle";

$modversion['cube_style'] = true;

// admin
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu']="admin/menu.php";

// sql
$modversion['sqlfile']['mysql'] = "sql/mysql.sql";
$modversion['tables'][] = "{prefix}_{dirname}_bookmarks";
$modversion['tables'][] = "{prefix}_{dirname}_tags";
$modversion['tables'][] = "{prefix}_{dirname}_watched";

// Main manu
$modversion['hasMain'] = 1;
global $xoopsUser;
if (is_object($xoopsUser)) {
	$uid = $xoopsUser->uid();

	$modversion['sub'][0]['name'] = _MI_SC_MENU_ALL;
	$modversion['sub'][0]['url'] = "index.php?uid=". $uid;;

	$modversion['sub'][1]['name'] = _MI_SC_MENU_MYBOOK;
	$modversion['sub'][1]['url'] = "index.php?action=Index&amp;uid=". $uid;

	$modversion['sub'][2]['name'] = _MI_SC_MENU_MYWATCH;
	$modversion['sub'][2]['url'] = "index.php?action=WatchedList&amp;uid=". $uid;
}
// Blocks


$modversion['blocks'][0]['file'] = "scuttle_new_entries.php";
$modversion['blocks'][0]['name'] = _MI_SC_BLOCK_ENTRIESNEW;
$modversion['blocks'][0]['description'] =_MI_SC_BLOCK_ENTRIESNEW_DSC;
$modversion['blocks'][0]['class'] = "NewEntriesBlock";
$modversion['blocks'][0]['options'] = "5";
$modversion['blocks'][0]['template'] = "scuttle_new_entries.html";

$modversion['blocks'][1]['file'] = "scuttle_tagcloud.php";
$modversion['blocks'][1]['name'] = _MI_SC_BLOCK_TAGCLOUD;
$modversion['blocks'][1]['description'] = _MI_SC_BLOCK_TAGCLOUD_DSC;
$modversion['blocks'][1]['show_func'] = "scuttle_b_tagcloud_show";
$modversion['blocks'][1]['template'] = "scuttle_tagcloud.html";


$modversion['templates'][0] = array('file' => 'scuttle_header.html'        , 'description' => _MI_SC_TPL_HEADER);
$modversion['templates'][1] = array('file' => 'scuttle_index.html'         , 'description' => _MI_SC_TPL_INDEX);
$modversion['templates'][2] = array('file' => 'scuttle_bookmarks_list.html', 'description' => _MI_SC_TPL_INDEX_LIST);
$modversion['templates'][3] = array('file' => 'scuttle_bookmarks_edit.html', 'description' => _MI_SC_TPL_BOOKMARKS_EDIT);
$modversion['templates'][4] = array('file' => 'scuttle_search.html'        , 'description' => _MI_SC_TPL_SEARCH);
$modversion['templates'][5] = array('file' => 'scuttle_tag_cloud.html'     , 'description' => _MI_SC_TPL_TAGCLOUD);
$modversion['templates'][6] = array('file' => 'scuttle_tag.html'           , 'description' => _MI_SC_TPL_TAGS);
$modversion['templates'][7] = array('file' => 'scuttle_tag_list.html'      , 'description' => _MI_SC_TPL_TAGS_LIST);
$modversion['templates'][8] = array('file' => 'scuttle_watched_list.html'  , 'description' => _MI_SC_TPL_WATCHED_LIST);

// config
$modversion['config'][] = array( 
	'name'        => 'use_breadcrumbs',
	'title'       => '_MI_SC_USE_BREADCRUMBS' ,
	'description' => '_MI_SC_USE_BREADCRUMBS_DSC' ,
	'formtype'    => 'yesno' ,
	'valuetype'   => 'int',
	'default'     => '0'
);

$modversion['hasSearch'] = 0;
//$modversion['search']['file'] = "include/search.inc.php";
//$modversion['search']['func'] = "scuttle_search";
$modversion['hasNotification'] = 0;
$modversion['use_smarty'] = 1;
$modversion['hasComments'] = 0;
//$modversion['onInstall']   = 'include/oninstall.php' ;
//$modversion['onUpdate']    = 'include/onupdate.php' ;
//$modversion['onUninstall'] = 'include/onuninstall.php' ;

?>